package com.sumer.psychology.photo.application.command;


import com.sumer.psychology.common.domain.model.Author;
import com.sumer.psychology.common.port.adapter.service.AuthorCommand;

/**
 * User: zhenguang.zhu
 * Date: 2014/8/29
 * Time: 15:23
 */
public class UploadPhotoCommand implements AuthorCommand {
    private String title;
    private String description;
    private String fileId;
    private String albumId;
    private Author author;

    public UploadPhotoCommand(String title, String description, String fileId, String albumId, Author author) {
        this.title = title;
        this.description = description;
        this.fileId = fileId;
        this.albumId = albumId;
        this.author = author;
    }

    public String title() {
        return title;
    }

    public String description() {
        return description;
    }

    public String fileId() {
        return fileId;
    }

    public String albumId() {
        return albumId;
    }

    @Override
    public void setAuthor(Author author) {
        this.author = author;
    }

    @Override
    public Author author() {
        return this.author;
    }
}
